package com.qyhl.webtv.module_news.news.catchnews;


import com.qyhl.webtv.commonlib.entity.intergral.CoinBean;
import com.qyhl.webtv.commonlib.entity.news.CatchSmallBean;

import java.util.List;

/**
 * Created by qyhl on 2017/11/30.
 */

public interface CatchNewsContract {
    interface CatchNewsView {
        void setDetail(CatchSmallBean bean);

        void setEmpty(String msg);

        void setError(String msg);

        void setNetError(String msg);

        void setComment(List<CatchSmallBean.Comments> beanList, boolean isMore, boolean isSelf);

        void setCommentError(String msg);

        void setCommentEmpty(String msg);

        void setCommentMessage(String msg);

        void setLog(String msg);

        void sendSuccess(String msg);

        void sendError(String msg);

        void getCoinSuccess(CoinBean bean);

        void getCoinFailure(String msg);

    }

    interface CatchNewsPresenter {
        void getDetail(String newsId);

        void getComment(String page, String number, String newsId);

        void sendComment(String newsId, String content, String userName, String nickName, String userAvatar);

        void count(String newsId);


        void setDetail(CatchSmallBean bean);

        void setError(int code, String msg);

        void setComment(List<CatchSmallBean.Comments> beanList, boolean isMore);

        void setCommentError(String msg);

        void setCommentEmpty(String msg);

        void setCommentMessage(String msg);

        void setLog(String msg);

        void sendSuccess(String msg);

        void sendError(String msg);

        void getCoin(String type,String name,int ty);

        void getCoinSuccess(CoinBean bean);

        void getCoinFailure(String msg);
    }

    interface CatchNewsModel {
        void getDetail(String newsId);

        void getComment(String page, String number, String newsId);

        void sendComment(String newsId, String content, String userName, String nickName, String userAvatar);

        void count(String newsId);

        void getCoin(String type,String name,int ty);
    }
}
